package org.business.accounting.beans;

import org.apache.tapestry5.beaneditor.Validate;
import org.business.accounting.beans.enums.Country;
import org.business.accounting.interfaces.User;

public class UserBean implements User {
	
	private String firstName;
	private String lastName;
	private Country country;

	private boolean isAdmin;
	private String userName;
	private String password;
	private String email;

	private double spentMoney;

	@Validate("required,maxlength=15")
	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	@Validate("required,maxlength=15")
	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	@Validate("required,maxlength=13")
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	@Validate("required,maxlength=13")
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public boolean isAdmin() {
		return isAdmin;
	}

	public void setAdmin(boolean isAdmin) {
		this.isAdmin = isAdmin;
	}

	public Country getCountry() {
		return country;
	}

	public void setCountry(Country country) {
		this.country = country;
	}

	public double getSpentMoney() {
		return spentMoney;
	}

	public void setSpentMoney(double spentMoney) {
		this.spentMoney = spentMoney;
	}
	@Validate("required")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

}
